﻿using DFGK_WMS.Model.Enum;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 仓位
    /// </summary>
 
    public class CellModel
    {

        /// <summary>
        /// 主键
        /// </summary>
 
        public int Id
        {
            get;
            set;
        }

        /// <summary>
        /// 仓位编码
        /// </summary>
        public string Code
        {
            get;
            set;
        }

        /// <summary>
        /// 仓位名称
        /// </summary>
        public string Name
        {
            get;
            set;
        }

        /// <summary>
        /// 库房Id
        /// </summary>
        public int? WhId
        {
            get;
            set;
        }
        /// <summary>
        /// 库房编码
        /// </summary>
        public string WhCode
        {
            get; set;
        }

        /// <summary>
        /// 库房名称
        /// </summary>
        public string WhName
        {
            get; set;
        }

        /// <summary>
        /// 库区Id
        /// </summary>
        public int? AreaId
        {
            get;
            set;
        }
        /// <summary>
        /// 库区编码
        /// </summary>
        public string AreaCode
        {
            get; set;
        }

        /// <summary>
        /// 库区名称
        /// </summary>
        public string AreaName
        {
            get; set;
        }

        /// <summary>
        /// 巷道Id
        /// </summary>
        public int? RoutewayId
        {
            get;
            set;
        }

        /// <summary>
        /// 货架Id
        /// </summary>
        public int? ShelfId
        {
            get;
            set;
        }

        /// <summary>
        /// 货架编码
        /// </summary>
        public string ShelfCode
        {
            get;
            set;
        }

        /// <summary>
        /// 货架名称
        /// </summary>
        public string ShelfName
        {
            get;
            set;
        }

        /// <summary>
        /// 仓位类型
        /// </summary>
        public EmCellType? CellType
        {
            get;
            set;
        }

        /// <summary>
        /// 状态：0-故障；1-正常;2-锁定;3-上架禁用；4-下架禁用；5-上下架禁用；6-取空异常；7-占位异常
        /// </summary>
        public EmCellStatus? Status
        {
            get;
            set;
        }

        /// <summary>
        /// 0-空仓；1-货仓；2-空托盘
        /// </summary>
        public int? FullStatus
        {
            get; set;
        }

        /// <summary>
        /// 排号
        /// </summary>
        public int? LineNO
        {
            get;
            set;
        }

        /// <summary>
        /// 层号
        /// </summary>
        public int? LayerNO
        {
            get;
            set;
        }

        /// <summary>
        /// 列号
        /// </summary>
        public int? ColumnNO
        {
            get;
            set;
        }

        /// <summary>
        /// 深度：0:代表一深位、1:代表二深位、2:代表三深位、3:代表四深位；当项目用不上深度时，该值赋值0
        /// </summary>
        public int? DepthIndex
        {
            get;
            set;
        }

        /// <summary>
        /// 是否为最深度的仓位
        /// </summary>
        public bool? IsMaxDepth
        {
            get;
            set;
        }

        /// <summary>
        /// ERP仓位编码
        /// </summary>
        public string ERPCode
        {
            get;
            set;
        }

        /// <summary>
        /// 当前业务类型：0-无；1-入库；2-出库；3-盘点；4-移位；5-手动上架；6-手动下架
        /// </summary>
        public EmBusinessType? BusinessType
        {
            get;
            set;
        }

        /// <summary>
        /// 是否锁定
        /// </summary>
        public bool? IsLock
        {
            get;
            set;
        }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark
        {
            get;
            set;
        }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate
        {
            get;
            set;
        }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public int? CreateUserId
        {
            get;
            set;
        }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateUserName
        {
            get;
            set;
        }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyDate
        {
            get;
            set;
        }

        /// <summary>
        /// 修改用户Id
        /// </summary>
        public int? ModifyUserId
        {
            get;
            set;
        }

        /// <summary>
        /// 修改人
        /// </summary>
        public string ModifyUserName
        {
            get;
            set;
        }
        /// <summary>
        /// 空间距离
        /// </summary>
        public decimal? DistanceValue
        {
            get; set;
        }


        /// <summary>
        /// 所属逻辑分区编码
        /// </summary>
        public string LogicalPartCode
        {
            get; set;
        }

        /// <summary>
        /// 所属逻辑分区名称
        /// </summary>
        public string LogicalPartName
        {
            get; set;
        }
        /// <summary>
        /// 高度类型
        /// </summary>
        public int? HeightType
        {
            get; set;
        }
    }


}
